package com.itheima.字符流;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        /*Scanner sc = new Scanner(System.in);
        System.out.println("输入用户名:");
        String userName = sc.next();
        System.out.println("请输入密码:");
        String passWord = sc.next();*/

       /* FileWriter f = new FileWriter("day13_字符流&properties\\b.txt");
        f.write(userName);
        f.write(System.lineSeparator());
        f.write(passWord);
        f.close();*/

        FileReader fr = new FileReader("day13_字符流&properties\\b.txt");
        int c;
        while ((c = fr.read()) != -1) {
            System.out.print((char) c);
        }
        fr.close();
    }
}
